package common

type JobExecuteStatus string

const (
	Running JobExecuteStatus = "running"
	Success JobExecuteStatus = "success"
	Failed  JobExecuteStatus = "failed"
	Unknown JobExecuteStatus = "unknown"
)

// 作业执行日志
type JobExecutionLog struct {
	ID              string           `json:"id"`
	JobId           string           `json:"jobId"`
	Name            string           `json:"name"`
	Ip              string           `json:"ip"`
	Group           string           `json:"group"`
	Cron            string           `json:"cron"`
	Target          string           `json:"target"`
	Payload         string           `json:"payload"`
	Remark          string           `json:"remark"`
	CreateTime      string           `json:"createTime"`
	StartTime       string           `json:"startTime"`
	FinishTime      string           `json:"finishTime"`
	Times           int              `json:"times"`
	Status          JobExecuteStatus `json:"status"`
	Result          string           `json:"result"`
	ExecuteClientId string           `json:"executeClientId"`
}
